package com.fp.helig.SceneControler;

import java.io.Serializable;

import org.anddev.andengine.engine.camera.SmoothCamera;
import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.extension.physics.box2d.PhysicsFactory;
import org.anddev.andengine.extension.physics.box2d.PhysicsWorld;
import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;

import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.fp.helig.Res.ObjectParams;


public class BaseObject extends AnimatedSprite implements Serializable {
	
    private static final long serialVersionUID = 1L;
	public static final int ACTION_JUMP =1;
	public static final int ACTION_STOP =2;
	public static final int ACTION_RUN =0;
	
	
	
	public static final int BOX_BODY =1;
	public static final int CIRCLE_BODY =2;
	public static final int SENSOR=3;
	
	private static final FixtureDef FIXTURE_DEF = PhysicsFactory.createFixtureDef(3, 0.8f, 0.8f);
	private static final FixtureDef FIXTURE_DEF1 = PhysicsFactory.createFixtureDef(500, 0.01f, 1.0f);
	
	
	float curentX=0;
	float curentY=0;
	public ObjectParams mParams;
	
	int curentAction=ACTION_RUN;
	


	public BaseObject(float pX, float pY,ObjectParams pParams, PhysicsWorld physicsWorld, SmoothCamera camera) {
		 super(pX, pY,pParams.mTexture.getElement());
		 this.setScale(pParams.mSizeModifer);
		 mParams=pParams;
		 curentX=pX;
		 curentY=pY;
		// TODO Auto-generated constructor stub
	}
	
	public BaseObject returnThis(){
		return this;
	}

}
